<template>
	<view>
		<view class="video_box zl-width-100">
			<video :src="url" :controls="true" :autoplay="true" :loop="true"></video>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				url: '',
				ossVideoCover: getApp().globalData.ossVideoCover,
			};
		},
		onLoad(opt) {
			this.url = opt.url;
			var title = opt.title;
			if (title) {
				uni.setNavigationBarTitle({
					title: title
				})
			}
		}
	}
</script>

<style lang="scss">
	.video_box {
		width: 100vw;
		height: 100vh;
		overflow: hidden;

		video {
			width: 100vw;
			height: 100%;
			overflow: hidden !important;
		}


	}
</style>
